{{extend '../private/templates/Vulnerability/views/layout.html'}}
<header>
  <div id='topbar' class='transparent unselectable'>
    <a id='backToHome' href='/{{=appname}}' title='Back to {{=system_name_short}}'>{{=T("BACK TO %(system_name_short)s") % dict(system_name_short=system_name_short)}}</a>
    <div id='breadcrumbs'>
      <p>{{=T("You are viewing")}}: </p>
      <a href='#'><div id='globalBreadCrumb'></div></a>
      <a id='l0_breadcrumb'><span></span></a>
      <a id='l1_breadcrumb'><span></span></a>
      <a id='l2_breadcrumb'><span></span></a>
      <a id='l3_breadcrumb'><span></span></a>
      <!--<a id='l4_breadcrumb'><span></span></a>
      <a id='l5_breadcrumb'><span></span></a>-->
    </div>
  </div>
  <nav>
    <div id='dataTopBar'>
      <img src='/{{=appname}}/static/themes/Vulnerability/img/dropdownArrowPng8.png' alt='View Data Submission Options' />
      <a href="javascript:showSubmitData('indicators');" id='defaultDataLink' class='data' title='Submit Data'>{{=T("SUBMIT DATA")}}</a>
      <div class='topHidden' id='dataOptions'>
        <a href="javascript:showSubmitData('indicators');" title='Submit Indicators'>{{=T("INDICATORS")}}</a>
        <a href="javascript:showSubmitData('reports');" title='Other Data'>{{=T("OTHER DATA")}}</a>
      </div>
    </div>
    <div id='reportsTopBar'>
      <img src='/{{=appname}}/static/themes/Vulnerability/img/dropdownArrowPng8.png' alt='View Reports Options' />
      <a href="javascript:showReports('pending');" id='defaultReportsLink' class='reports' title='Reports'>{{=T("REPORTS")}}</a>
      <div class='topHidden' id='reportsOptions'>
        <a href="javascript:showReports('pending');" title='Approve Reports'>{{=T("APPROVE REPORTS")}}</a>
        <a href="javascript:showReports('VCA');" title='VCA Reports'>{{=T("VCA REPORTS")}}</a>
        <a href="javascript:showReports('past');" title='Other Reports'>{{=T("OTHER REPORTS")}}</a>
      </div>
    </div>
  </nav>
</header>
<div id='map'></div>
<section id='mapKey' class='unselectable'>
  <div id='logo'>
    <h1>{{=T("Vulnerability Mapping")}}</h1>
  </div>
  <h3>{{=T("LEGEND")}}</h3>
  <section id='resilienceKey'>
    <input type='checkbox' id='resilienceCheck' name='resilience' value='resilience' checked />
    <div id='resilienceLabel'>
      <label for='resilienceCheck'>{{=T("RESILIENCE")}}</label>
      <p><a class='calculationLink' title="See how it's calculated"><span class='arrow'>&rarr;</span> {{=T("Calculation")}}</a></p>
    </div>
    <div id='colorBlocks'>
      <div id='redsquare'>1</div>
      <div id='orangesquare'>2</div>
      <div id='yellowsquare'>3</div>
      <div id='greensquare'>4</div>
      <div id='darkgreensquare'>5</div>
      <div id='lowLabel'>{{=T("LOW")}}</div>
      <div id='highLabel'>{{=T("HIGH")}}</div>
    </div>
    <div id='noDataBlock'>
      <div id='nodatasquare'></div>
      <div id='noDataLabel'>{{=T("No Data")}}</div>
    </div>
  </section>
  <section id='populationKey'>
    <input type='checkbox' name='population' id='populationCheck' value='population' />
    <label for='populationCheck'>{{=T("POPULATION DENSITY")}}</label>
    <div id='populationBlocks'>
      <div id='blockOne'>
        <div class='block'></div>
        <div class='label'>0</div>
      </div>
      <div id='blockTwo'>
        <div class='block'></div>
        <div class='label'>1&ndash;4</div>
      </div>
      <div id='blockThree'>
        <div class='block'></div>
        <div class='label'>5&ndash;24</div>
      </div>
      <div id='blockFour'>
        <div class='block'></div>
        <div class='label'>25-249</div>
      </div>
      <div id='blockFive'>
        <div class='block'></div>
        <div class='label'>250&ndash;999</div>
      </div>
      <div id='blockSix'>
        <div class='block'></div>
        <div class='label'>1000+</div>
      </div>
    </div>
  </section>
  <section id='iconsKey'>
    <input type='checkbox' id='iconsCheck' name='icons' value='icons' checked />
    <label for='iconsCheck'>{{=T("ICONS")}}</label>
    <div class='iconSection' id='volunteerSection'>{{=T("Volunteer")}}</div>
    <div class='iconSection' id='mapSection'>{{=T("Map")}}</div>
  </section>
  <!--<div id='iconsBlocker'></div>-->
</section>
<!-- <div id='timeline'>
  <label for='amount'></label>
  <input type='text' id='amount' style='border:0; color:#f6931f; font-weight:bold;' />
  <div id='timelineSlider'></div>
</div> -->
<section id='drawer' class='transparent unselectable'>
  <div id='risingTab'></div>
  <div id='drawerContent'>
    <div id='drawerSpacer'></div>
    <div id='drawerTop'>
      <div id='indicator'></div>
      <h1><span class='geoName'></span> <span class='geoType'></span> <span class='year'></span></h1>
      <div id='show-hide'></div>
      <div id='divider'>|</div>
      <div id='analysisLink'>
        <a title="Go to analysis">{{=T("GO TO ANALYSIS")}}</a>
      </div>
      <div id='search'>
        <img src='/{{=appname}}/static/img/ajax-loader.gif' height=32 width=32 id='dummy_location_search_throbber' class='throbber hidden'>
        <input class='rounded' type='text' name='search' id='dummy_location_search' />
        <div id='searchSubmit'></div>
        <input class='hidden' id='location_search' />
      </div>
    </div>
    <div id='drawerInside' class='hidden'>
      <div id='drawerSpacer2'>&nbsp;</div>
      <ul id='drawerQuickActions'>
        <li><a href='javascript:showReports("pending");' class='reportsLink' title='View Reports'> {{=T("View Reports")}}</a>&nbsp;&nbsp;|</li>
        <li><a href='javascript:showSubmitData("indicators");' class='dataLink' title='Submit Data'>{{=T("Submit data to the region")}}</a>&nbsp;&nbsp;<span id='subGeoDivider'>|</span></li>
        <li id='subGeo'>
          <span id='subGeoReported'></span>
          <div id='subGeoPopup' class='popup'></div>
        </li>
      </ul>
      <section id='resilienceSummary'>
        <h2 class='eleven'>{{=T("OVERALL RESILIENCE")}}</h2>
        <ul>
          <li class='eleven'><a class='calculationLink' href='#calculations' title="See how it's calculated"><span class='arrow'>&rarr;</span> {{=T("Calculation")}}</a></li>
          <li id='mainRating'></li>
        </ul>
      </section>
      <section id='dataBreakdown'>
        <h2>{{=T("DATA QUALITY")}}</h2>
        <ul>
          <li id='qualityDescription'>
            <div id='poor'>{{poor=T("POOR")}}{{=poor}}
              <div class='popup'>
                <div class='popupContent'>
                  <h3>{{=poor}}</h3>{{total_data_reported=T("of total data reported")}}.
                  <p>0&ndash;25% {{=total_data_reported}}</p>
                </div>
                <div class='popupBottom'></div>
              </div>
            </div> | 
            <div id='fair'>{{=T("FAIR")}}
              <div class='popup'>
                <div class='popupContent'>
                  <h3>{{=T("FAIR")}}</h3>
                  <p>25&ndash;50% {{=total_data_reported}}</p>
                </div>
                <div class='popupBottom'></div>
              </div>
            </div> | 
            <div id='moderate'>{{=T("MODERATE")}}
              <div class='popup'>
                <div class='popupContent'>
                  <h3>{{=T("MODERATE")}}</h3>
                  <p>50&ndash;75% {{=total_data_reported}}</p>
                </div>
                <div class='popupBottom'></div>
              </div>
            </div> | 
            <div id='strong'>{{=T("STRONG")}}
              <div class='popup'>
                <div class='popupContent'>
                  <h3>{{=T("STRONG")}}</h3>
                  <p>75&ndash;100% {{=total_data_reported}}</p>
                </div>
                <div class='popupBottom'></div>
              </div>
            </div>
          </li>
          <li id='qualityCommunes'></li>
          <li id='populationCount'>
            <p>{{=T("POPULATION:")}}</p>
            <div class='statistic'>
              <div class='listText'></div>
              <div class='popup'>
                <div class='popupContent'><p></p></div>
                <div class='popupBottom'></div>
              </div>
            </div>
          </li>
        </ul>
      </section>
      <figure id='indicatorRatingChart'>
        <h2>{{=T("INDICATOR RATINGS")}}</h2>
        <div id='chartKey'><img src='/{{=appname}}/static/themes/Vulnerability/img/legend_medianPng8.png' alt='Median and Range symbols' /></div>
        <div id='chartDropdown'>
          <select id='chartSwitcher' onChange='updateChart(this.options[this.selectedIndex].value, false);'>
            <option value='0'>{{=T("Current Location")}}</option>
          </select>
        </div>
        <div id='chartLabel1'>1</div>
        <div id='chartLabel2'>2</div>
        <div id='chartLabel3'>3</div>
        <div id='chartLabel4'>4</div>
        <div id='chartLabel5'>5</div>
        <ul></ul>
      </figure>
      <section id='browseOtherRegions'>
        <h2>{{=T("BROWSE OTHER REGIONS")}}</h2>
        <ul>
          <li id='l0'><label for='l0_select'>{{=COUNTRY}}:</label>
            <select id='l0_select'>
              <option value='' class='none'>{{=CHOOSE_COUNTRY}}</option>
            </select>
          </li>
          <li id='l1'><label for='l1_select'></label>
            <select id='l1_select'></select>
          </li>
          <li id='l2'><label for='l2_select'></label>
            <select id='l2_select'></select>
          </li>
          <li id='l3'><label for='l3_select'></label>
            <select id='l3_select'></select>
          </li>
          <!--
          <li id='l4'><label for='l4_select'></label>
            <select id='l4_select'></select>
          </li>
          <li id='l5'><label for='l5_select'></label>
            <select id='l5_select'></select>
          </li>-->
          <li id='lx_select_throbber' class='throbber hidden'></li>
        </ul>
        <a id='newRegion' title='Go to the region'>{{=T("GO TO THE REGION")}} <span class='arrow'>&rarr;</span></a>
      </section>
    </div>
  </div>
</section>
<section id='calculationView'>
  <div class='closePanel'></div>
  <h3>{{=T("ABOUT CALCULATIONS")}}</h3>
  <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt.</p>
  <p>Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lrem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget conimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum.
</section>
<section id='photoPanel'>
  <section class='leftBar'>
  </section>
  <section class='photoPane'>
    <div class='closePanel'></div>
    <img />
    <div class='photoCaption'>
      <div class='photoNumber'></div>
      <div class='photoDescription'></div>
      <a href='#' title='Download'>{{=T("Download")}}</a>
    </div>
  </section>
</section>
{{include "vulnerability/analysis.html"}}
{{include "vulnerability/report.html"}}
{{include "vulnerability/submit_data.html"}}
{{if s3.debug:}}
<script type="text/javascript">//<![CDATA[
S3.debug=1
//]]></script>{{pass}}